package assist.domain.model;

import java.io.Serializable;
import java.util.Set;
import java.util.TreeSet;

public class Games implements Serializable
{
    private static final long serialVersionUID = 1L;

    private Set<Game> gamesList;
    private Set<String> gameIds;
    
    public void setGamesList(Set<Game> gamesList)
    {      
        this.gamesList = gamesList;
        this.gameIds = new TreeSet<String>();
        for (Game game : gamesList)
        {
            this.gameIds.add(game.getId());
        }        
    }
    
    public Set<Game> getGamesList()
    {      
        return gamesList;
    }

    public Set<String> getGameIds()
    {
        return this.gameIds;
    }
}
